//vue
export function hasChanged(x, y) {
  if (x === y) {
    return x === 0 && 1 / x !== 1 / y; //排除+0 -0
  } else {
    return x === x || y === y; //排除NaN
  }
}
